class UserModel {
  late String userName;
  late String nickName;

  void loginOut() {
    this.userName = '';
    this.nickName = '';
  }

  UserModel.fromJson(json) {
    this.userName = json['userName'] ?? '';
    this.nickName = json['nickName'] ?? '';
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> map = {};
    map['userName'] = userName;
    map['nickName'] = nickName;
    return map;
  }
}
